<template>
  <view @click="handle"> <slot></slot></view>
</template>

<script>
export default {
  props: {
    list: Array,
    monthIndex: Number,
  },
  methods: {
    handle() {
      //   console.log(this.list);
      getApp().globalData.imgList = this.list;
      getApp().globalData.imgIndex = this.monthIndex;
      uni.navigateTo({
        url: "/pages/imgDetail/index",
      });
    },
  },
};
</script>

<style></style>
